package org.codert.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: TanJingyu
 * @create: 2022-09-23 16:45
 **/
@RestController
@RequestMapping("/hello")
public class HelloController {
    @Value("${name}")
    private String name;

    @GetMapping
    public String name() {
        return name;
    }
}

    